package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.AgencyCertificationAuditService;
import com.jzo2o.mvc.utils.UserContext;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController("AgencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构人员认证信息")
public class AgencyCertificationAuditController {



    @Resource
    AgencyCertificationAuditService agencyCertificationAuditService;

    /**
     * @description: 机构人员认证信息添加
     * @author: xushuaihang
     * @Date: 2024/8/21 13:59
     * @param:
     * @param agencyCertificationAuditAddReqDTO
     * @return: void
    **/
    @PostMapping
    public void agencyCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO){
        agencyCertificationAuditAddReqDTO.setServeProviderId(UserContext.currentUserId());
        agencyCertificationAuditService.agencyCertificationAudit(agencyCertificationAuditAddReqDTO);

    }


    @GetMapping("/rejectReason")
    public RejectReasonResDTO rejectReason(){
        return agencyCertificationAuditService.rejectReason();
    }




}
